package com.bonana.core.form;

import com.bonana.core.entity.mybatis.Project;
import org.springframework.web.multipart.MultipartFile;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2016/7/5.
 */
public class ProjectForm {

    public Project toProjectModel() {
        Project saveB = new Project();
        saveB.setProjectId(getProjectId());
        saveB.setProjectName(getProjectName());
        saveB.setProjectSender(getProjectSender());
        saveB.setProjectContent(getProjectContent());
        saveB.setProjectBegintime(getProjectBegintime());
        saveB.setProjectEndtime(getProjectEndtime());
        saveB.setProjectDesc(getProjectDesc());
        saveB.setTargetVote(getTargetVote());
        return saveB;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Timestamp getProjectBegintime() {
        return projectBegintime;
    }

    public void setProjectBegintime(Timestamp projectBegintime) {
        this.projectBegintime = projectBegintime;
    }

    public Timestamp getProjectEndtime() {
        return projectEndtime;
    }

    public void setProjectEndtime(Timestamp projectEndtime) {
        this.projectEndtime = projectEndtime;
    }

 /*   public MultipartFile getProjectFile() {
        return projectFile;
    }

    public void setProjectFile(MultipartFile projectFile) {
        this.projectFile = projectFile;
    }*/

    private Integer projectId;
    private String projectName;

    public String getProjectDesc() {
        return projectDesc;
    }

    public void setProjectDesc(String projectDesc) {
        this.projectDesc = projectDesc;
    }

    private String projectDesc;
    private Timestamp projectBegintime;
    private Timestamp projectEndtime;
    //private MultipartFile projectFile;

    public String getProjectContent() {
        return projectContent;
    }

    public void setProjectContent(String projectContent) {
        this.projectContent = projectContent;
    }

    public Integer getProjectSender() {
        return projectSender;
    }

    public void setProjectSender(Integer projectSender) {
        this.projectSender = projectSender;
    }

    private String projectContent;
    private Integer projectSender;

    public Integer getTargetVote() {
        return targetVote;
    }

    public void setTargetVote(Integer targetVote) {
        this.targetVote = targetVote;
    }

    private Integer targetVote;
}
